# Marcelo Barros de Almeida
# 31/08/2001

# ---------------  MACROS -------------------------------
# Directories 
SRCDIR = ./src
BINDIR  = .
PROGRAM = svmbr
INCLUDE =

# set up compiler and options
CXX = g++
CXXFLAGS = -O3  -I.
# debug
#CXXFLAGS = -g -O0 -I.

# include files

# source files to compile
SRC = $(SRCDIR)/cronometer.cpp  $(SRCDIR)/kernel.cpp  $(SRCDIR)/solver.cpp \
	$(SRCDIR)/svm.cpp $(SRCDIR)/data.cpp  $(SRCDIR)/lineargs.cpp  \
	$(SRCDIR)/svmbr.cpp $(SRCDIR)/cache.cpp $(SRCDIR)/subset.cpp $(SRCDIR)/edrsolver.cpp \
	$(SRCDIR)/pqueue.cpp $(SRCDIR)/smosolver.cpp $(SRCDIR)/boostsolver.cpp

# All OBJ files will have the same base name but with
# extension .o
OBJ = $(addsuffix .o, $(basename $(SRC)))

# --------------- TARGETS ---------------------------------

all: svmbr

svmbr:	$(OBJ)
	$(CXX) $(CXXFLAGS) -o $(PROGRAM) $(OBJ)

clean:
	rm -f $(OBJ) $(BINDIR)/core

clean_all: clean
	rm -f $(PROGRAM)

